package com.hnkywl.sts.entity.xsgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.organ.Wls;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 配送单
 * User: Administrator
 * Date: 13-4-25
 * Time: 上午11:48
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_PSD")
@Where(clause = "deleted!='1'")
public class Psd extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqPsd", allocationSize = 1, sequenceName = "SEQ_BIZ_PSD")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqPsd")
    private Long id;

    /**
     * 配送单号
     */
    private String psdh;

    /**
     * 销售单
     */
    @OneToOne
    @JoinColumn(name = "XSD_ID")
    private Xsd xsd;


    /**
     * 转库单
     */
    @OneToOne
    @JoinColumn(name = "ZKD_ID")
    private Zkd zkd;

    /**
     * 物流商
     */
    @ManyToOne
    @JoinColumn(name = "WLS_ID")
    private Wls wls;

    /**
     * 送货车号
     */
    private String shch;

    /**
     * 驾驶员
     */
    private String jsy;

    /**
     * 联系电话
     */
    private String lxdh;
    /**
     * 备注
     */
    private String bz;
    /**
     * 配送费用
     */
    private Float psfy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Float getPsfy() {
        return psfy;
    }

    public void setPsfy(Float psfy) {
        this.psfy = psfy;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getPsdh() {
        return psdh;
    }

    public void setPsdh(String psdh) {
        this.psdh = psdh;
    }

    public Zkd getZkd() {
        return zkd;
    }

    public void setZkd(Zkd zkd) {
        this.zkd = zkd;
    }

    public Xsd getXsd() {
        return xsd;
    }

    public void setXsd(Xsd xsd) {
        this.xsd = xsd;
    }

    public Wls getWls() {
        return wls;
    }

    public void setWls(Wls wls) {
        this.wls = wls;
    }

    public String getShch() {
        return shch;
    }

    public void setShch(String shch) {
        this.shch = shch;
    }

    public String getJsy() {
        return jsy;
    }

    public void setJsy(String jsy) {
        this.jsy = jsy;
    }

    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }
}
